package tasks

import akka.actor._
import play.api.Logging

class DynamicJobScheduleActor extends Actor with Logging {
  def receive = {
    case "test" => logger.info("DynamicJobScheduleActor received message <test>")
    case massage: DynamicJobScheduleMessage => {
      massage.jobSchedules.job(massage.jobInfo, massage.jobSchedules.withName(massage.jobInfo.name))
    }
  }
}